package com.briup.cms.dao;

import com.briup.cms.bean.Role;
import org.apache.ibatis.annotations.*;

import java.util.List;

public interface RoleMapper {
    @Results
    @Select("select * from role")
    List<Role> selectAll();
    
    @Insert("insert into role value(null,#{name})")
    void insert(Role role);

    @Update("update role set name=#{name} where id=#{id}")
    void update(Role role);

    @Delete("delete from role where id=#{id}")
    void deleteById(long id);
}
